package com.ztgf.shopping.models.service.template;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.bo.template.TempletPlatformRelationSaveBO;
import com.ztgf.shopping.models.dto.template.TempletInfoDTO;
import com.ztgf.shopping.models.dto.template.TempletPlatformRelationDTO;
import com.ztgf.shopping.models.vo.template.TemplateInfoDVO;

import java.util.List;

/**
 * <p>
 * 店铺模板关系  服务类
 * </p>
 *
 * @author YUE123
 * @since 2020-05-23
 */
public interface ITempletPlatformRelationService extends IService<TempletPlatformRelationDTO> {
    boolean add(TempletPlatformRelationSaveBO templetPlatformRelationSaveBO);
    TempletInfoDTO getDefaultTempletInfoListByShopId(Long shopId);
    List<TemplateInfoDVO> getTempletInfoListByShopId(Long shopId, int type);

    boolean updateTemplateDefault(Long shopId, Long templateId, int type);

    boolean updateActiveTemplateDefault(Long templateId);
}
